﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo.Mmose.Net
{
    public class DisconnectAtServerEventArgs : EventArgs
    {
        // Methods
        public DisconnectAtServerEventArgs( ServiceHandle serviceHandle, ServiceHandleManager serviceHandleManager ) { }

        // Properties
        public ServiceHandle DisconnectHandle { get { return null; } }
        public ServiceHandleManager DisconnectHandleManager { get { return null; } }
    }

    public class ProcessDataAtServerEventArgs : EventArgs
    {
        // Methods
        public ProcessDataAtServerEventArgs( MessageBlock messageBlock, ServiceHandle serviceHandle, ServiceHandleManager serviceHandleManager ) { }

        // Properties
        public ServiceHandleManager AcceptorHandleManager { get { return null; } }
        public MessageBlock ProcessData { get { return null; } }
        public ServiceHandle ProcessHandle { get { return null; } }
    }

    public class ServiceHandler : ServiceHandle, IDisposable
    {
        // Events
        public event EventHandler<DisconnectAtServerEventArgs> EventDisconnect;
        public event EventHandler<ProcessDataAtServerEventArgs> EventProcessData;

        // Methods
        public void CloseSocket() { }
        public void Dispose() { }
        public void SendTo( MessageBlock sendMessageBlock ) { }

        // Properties
        public SocketServer Owner { get { return null; } }
    }
}
